/*
//创建猫类  分别创建3只猫的对象
//让三只猫都去抓老鼠

public class Cat {
    String water_cat;
    String black_cat;
    String yellow_cat;

    public Cat(String water_cat,String black_cat,String yellow_cat){
        this.black_cat = black_cat;
        this.water_cat = water_cat;
        this.yellow_cat = yellow_cat;
    }

    public void get_mouse(){
        System.out.println(this.black_cat+"抓老鼠");
        System.out.println(this.water_cat+"抓老鼠");
        System.out.println(this.yellow_cat+"抓老鼠");
    }

    public static void main(String[] args){
        Cat cat = new Cat("白猫","黑猫","黄猫");
        cat.get_mouse();
    }
}

 */
